{% set _pageTitle = 'Login' %}

{% extends "mder/_layouts/login.page.twig" %}

{% block body %}
<h1>&nbsp;</h1>
<div class="row">
    <div class="col-sm-5 col-sm-offset-3">
        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="pull-right">
                    <a href="/_mder/register" class="btn btn-xs btn-default">去注册</a>
                    <a href="/_mder/login" class="btn btn-xs btn-primary">忘记密码？</a>
                </div>

                <h3 class="panel-title">用户验证</h3>
            </div>
            <div class="panel-body">

            <!-- login form -->
            <form action="" method="post">
                {{ _globals.helper.csrfField()|raw }}
                <div class="form-group">
                    <label for="name">用户名：</label>
                    <input type="text" class="form-control" id="name" name="username" placeholder="username" maxlength="12" value="{{ user.username|default('') }}" required>
                </div>
                <div class="form-group">
                    <label for="password">密 码：</label>
                    <input type="password" class="form-control" id="password" name="password" placeholder="Password" maxlength="16" value="{{ user.password|default('') }}" required>
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="remember"> 记住我
                    </label>
                </div>

                <button type="submit" class="btn btn-success btn-block "><span class="glyphicon glyphicon-send"></span> &nbsp; 登 录</button>
            </form>

            </div>
        </div>
    </div>
</div>
{% endblock %}